package cn.school.basics.vo;



import cn.school.common.BaseVO;
import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@TableName("t_base_space_location")
@Data
public class BaseSpaceLocationVO extends BaseVO {

  private static final long serialVersionUID = -8254034350012765093L;
  @ApiModelProperty(value = "ID")
  private Long id;

  @ApiModelProperty(value = "学校ID")
  private Long schoolId;

  @ApiModelProperty(value = "位置名称")
  private String locationName;

  @ApiModelProperty(value = "层级名称 如 3栋-4楼-101室")
  private String levelName;

  @ApiModelProperty(value = "上级位置id")
  private Long locationPid;

  @ApiModelProperty(value = "状态 0-无效 1-有效")
  private String status;

  @ApiModelProperty(value = "层级:层级")
  private String level;

  @ApiModelProperty(value = "空间平面图")
  private String spaceImg;

  @ApiModelProperty(value = "位置类型")
  private String locationType;

  @TableField(exist = false)
  @ApiModelProperty(value = "每页条数")
  private Integer pageSize;

  @TableField(exist = false)
  @ApiModelProperty(value = "当前页码")
  private Integer pageNum;

  @TableField(exist = false)
  private boolean hasChildren;

  @TableField(exist = false)
  @ApiModelProperty(value = "床位列表")
  private List<DormitoryBerthVO> locationList;

  @ApiModelProperty(value = "使用人数")
  private String seat;

  /**
   * 层数
   */
  @TableField(exist = false)
  private Integer levelNum;

  /**
   * 级联
   */
  @TableField(exist = false)
  private List<BaseSpaceLocationVO> baseSpaceLocationVOList;

  @TableField(exist = false)
  private Integer num;

  /**
   * 默认租户为当前登录人的租户
   */
  private String tenantId = SysUserUtils.getSysUser().getTenantId();

}
